﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace KelonProud.Administration.Domain.Authorization
{
    [Table("KpAuthority")]
    public class Authority:Entity,IAudited
    {
        [Column("Name")]
        [StringLength(100)]
        public virtual string Name { get; set; }

        [Column("Code")]
        [StringLength(100)]
        public virtual string Code { get; set; }

        [Column("Remak")]
        [StringLength(300)]
        public virtual string Description { get; set; }

        [Column("CreationTime")]
        public DateTime CreationTime { get; set; }

        [Column("CreatorUserId")]
        public long? CreatorUserId { get; set; }

        [Column("LastModificationTime")]
        public DateTime? LastModificationTime { get; set; }

        [Column("LastModifierUserId")]
        public long? LastModifierUserId { get; set; }
    }
}
